package com.yanyilu.basing.service;

import com.yanyilu.basing.common.R;
import com.yanyilu.basing.entity.Leaderboard;
import com.baomidou.mybatisplus.service.IService;
import com.yanyilu.basing.entity.TotalTimeMileage;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Sxx
 * @since 2020-10-26
 */
public interface ILeaderboardService extends IService<Leaderboard> {
    R getList( Integer limit, Integer page);

    R getList(Integer userId, Integer limit, Integer page);

    R getInfo(Integer userId);

    R adminAdd(TotalTimeMileage totalTimeMileage);

    R adminList(Integer page,Integer limit,String contactDetails);

    R adminUpdate(Leaderboard leaderboard);

    R adminDeleteByUserId(Integer userId);
}
